<h1>New device</h1>

<%= error_messages_for :device %>

<% form_for :device, :url => devices_path do |f| %>
  <%= render :partial => 'fields', :locals => { :f => f } %>
  <p><%= submit_tag "Create device" %></p>
<% end %>